package com.ruoyi.map.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.HashMap;
import java.util.Map;

/**
 * 测试控制器
 * 
 * @author ruoyi
 */
@RestController
public class TestController
{
    @GetMapping("/test")
    public Map<String, Object> test()
    {
        Map<String, Object> result = new HashMap<>();
        result.put("code", 200);
        result.put("msg", "测试成功");
        result.put("data", "地图模块服务正常运行");
        result.put("timestamp", System.currentTimeMillis());
        return result;
    }
    
    @GetMapping("/health")
    public Map<String, Object> health()
    {
        Map<String, Object> result = new HashMap<>();
        result.put("status", "UP");
        result.put("service", "ruoyi-map");
        result.put("timestamp", System.currentTimeMillis());
        return result;
    }
}
